package br.biofoco.p2p.bootstrap;

public class MedidorTransferencia {
	
	private static MedidorTransferencia INSTANCE;
	private long init;
	private long end;
	private int total;
	
	private MedidorTransferencia() {}
	
	
	public static synchronized MedidorTransferencia getInstance() {
		if (INSTANCE == null)
			INSTANCE = new MedidorTransferencia();
		return INSTANCE; 
	}
	
	public synchronized void setInit(long init) {
		this.init = init;
	}
	
	public synchronized void setfinal(long end) {
		this.end = end;
	}


	public void setTotal(int size) {
		this.total = size;
	}

}
